package com.runa.protocol.dto;

import org.apache.commons.lang3.ArrayUtils;

public class Dtu86RequestData extends DtuRequestData implements IRequestData<byte[]> {

    public Dtu86RequestData(String dtuID, IRequestData requestData) {
        super(dtuID, requestData);
    }

    @Override
    public byte[] getData() {
        return ArrayUtils.addAll(
                ArrayUtils.addAll(
                        new byte[]{0x5b, 2},
                        requestData.getData()),
                new byte[]{0x5b});
    }

}
